Integrated circuit having a clock deskew circuit that includes an injection-locked oscillator

ABSTRACT

Methods and apparatuses featuring an injection-locked oscillator (ILO) are described. In some embodiments, an ILO can have multiple injection points and a free-running frequency that is capable of being adjusted based on a control signal. In some embodiments, each injection point of an ILO can correspond to a phase tuning range. In some embodiments, a circuit can include circuitry to detect a phase boundary between two adjacent phase tuning ranges. In some embodiments, a circuit can use the detected phase boundary to switch between the two adjacent phase tuning ranges.

RELATED APPLICATION

This application is a continuation of, and claims priority to, U.S. application Ser. No. 14/990,443, having the same title and inventors, filed 7 Jan. 2016, the contents of which are herein incorporated by reference in their entirety for all purposes. U.S. application Ser. No. 14/990,443 is a continuation of, and claims priority to, U.S. application Ser. No. 14/444,669 (U.S. Pat. No. 9,264,055), having the same title and inventors, filed 28 Jul. 2016, the contents of which are herein incorporated by reference in their entirety for all purposes. U.S. application Ser. No. 14/444,669 is a continuation of, and claims priority to, U.S. application Ser. No. 13/353,851 (U.S. Pat. No. 8,804,397), having the same title and inventors, filed 19 Jan. 2012, the contents of which are herein incorporated by reference in their entirety for all purposes. U.S. application Ser. No. 13/353,851 (U.S. Pat. No. 8,804,397) is a non-provisional of, and claims priority to, U.S. Provisional Application No. 61/448,885, having the same title and inventors, filed 3 Mar. 2011, the contents of which are incorporated herein by reference in their entirety for all purposes.

FIELD

This disclosure generally relates to electronic circuits. This disclosure generally relates to integrated circuit devices that include an injection-locked oscillator (ILO) circuit.

BACKGROUND

Some applications (e.g., high-performance memory systems) use circuits for adjusting the phase of a clock signal. An injection-locked oscillator (ILO) can be used in a phase adjustment circuit that adjusts the phase of a clock signal with respect to a reference phase. Some ILO-based phase adjustment circuits add a significant amount of complex circuitry to adjust the phase of the output clock signal.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 2 illustrates signal waveforms associated with an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 3A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 3B presents a flowchart that illustrates a process for modifying the phase of a clock signal using an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 3C illustrates phase curves for an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 4A illustrates how an ILO-based clock deskew circuit can be calibrated in accordance with some embodiments described in this disclosure.

FIG. 4B illustrates an embodiment of a ±45° phase shift and ILO delay circuit in accordance with some embodiments described in this disclosure.

FIG. 4C presents a flowchart that illustrates a process for calibrating an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 5A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 5B presents a flowchart that illustrates a process for modifying the phase of a clock signal using an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 6A illustrates how an ILO-based clock deskew circuit can be calibrated in accordance with some embodiments described in this disclosure.

FIG. 6B presents a flowchart that illustrates a process for calibrating an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 7A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

FIG. 7B illustrates phase tuning curves for three successive injection points in accordance with some embodiments described in this disclosure.

FIG. 8 illustrates a memory controller that includes an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

DETAILED DESCRIPTION

Embodiments presented in this disclosure are directed to methods and apparatuses featuring a circuit that uses an ILO to adjust the phase of a clock signal. In some embodiments, the ILO locks onto an input clock signal if the frequency of the input clock signal is relatively close to the free-running frequency of the ILO, or relatively close to a sub-harmonic or a super-harmonic of the free-running frequency of the ILO. In some embodiments, the phase of an output clock signal can be adjusted by varying the difference between an injection clock signal frequency (which can be the same as the input clock signal frequency) and the free-running frequency of the ILO. Specifically, in some embodiments, the ILO-based clock deskew circuit can be calibrated so that a free-running frequency of the ILO can be established for a target phase value, thereby enabling the ILO-based clock deskew circuit to output the clock signal with the target phase by tuning the ILO to the determined free-running frequency. In some embodiments, the ILO-based clock deskew circuit can include detection circuitry that is capable of detecting a phase boundary between adjacent phase tuning ranges. In this disclosure, unless otherwise stated, the phrase “based on” means “based solely or partly on.”

Embodiments described herein include, but are not limited to, ILOs that are based on a tank circuit (i.e., an inductor/capacitor oscillator) or a ring oscillator, with one or more nodes for receiving an input clock signal, and one or more nodes for outputting an output clock signal.

FIG. 1 illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

In some embodiments, ILO-based clock deskew circuit 102 outputs output clock signal 104 based on input clock signal 106 and phase information 108. Specifically, in some embodiments, the frequency of output clock signal 104 can be based on the frequency of input clock signal 106 (e.g., they can be substantially equal), and ILO-based clock deskew circuit 102 can be calibrated so that the phase of output clock signal 104 can be set to a desired value by providing appropriate phase information 108 to ILO-based clock deskew circuit 102. The methods and apparatuses described in this disclosure are generally applicable to any integrated circuit device (or system) that includes one or more ILO-based clock deskew circuits.

FIG. 2 illustrates signal waveforms associated with an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

In some embodiments, nominal clock waveform 200 can correspond to a nominal clock signal, which may or may not be the input clock signal of the ILO-based clock deskew circuit. Time instances T0-T10 correspond to edge transitions of nominal clock waveform 200. Output clock waveforms 204-1, 204-2, and 204-3 may correspond to the output clock signal (e.g., output clock signal 104) of the ILO-based clock deskew circuit (e.g., ILO-based clock deskew circuit 102) for different phase information values. The frequency of output clock waveform 204 can be substantially equal to the frequency of nominal clock waveform 200. In some embodiments, the ILO-based clock deskew circuit can be used to adjust the phase of the output clock signal with respect to the nominal clock signal based on the phase information that is provided to the ILO-based clock deskew circuit.

For example, as shown in FIG. 2, if the phase information value is V1, the ILO-based clock deskew circuit may produce output clock waveform 204-1, which has a zero phase difference with respect to nominal clock waveform 200. Similarly, if the phase information value is V2 or V3, the ILO-based clock deskew circuit may produce output clock waveforms 204-2 or 204-3, respectively, having phase differences θ₂ or θ₃, respectively, with respect to nominal clock waveform 200.

FIG. 3A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

In some embodiments, ILO-based clock deskew circuit 302 can include phase controller 314, demultiplexer 312, and ILO 310. Demultiplexer 312 can receive input clock signal 306 and inject an injection clock signal into one of multiple injection points of ILO 310 based on injection point select signal 318. For example, demultiplexer 312 can inject, based on injection point select signal 318, the injection clock signal into an in-phase injection point (denoted by “I”) or a quadrature-phase injection point (denoted by “Q”). Demultiplexer 312 can also adjust the amplitude of the injection clock signal (shown in FIG. 3A as gain “K”). ILO 310 can receive free-running frequency control signal 316 which can be used to vary the free-running frequency of ILO 310. In some embodiments, phase controller 314 can receive phase information 308 and generate injection point select signal 318 and free-running frequency control signal 316.

FIG. 3B presents a flowchart that illustrates a process for modifying the phase of a clock signal using an ILO-based clock deskew circuit, e.g., ILO-based clock deskew circuit 302, in accordance with some embodiments described in this disclosure.

In some embodiments, an ILO-based clock deskew circuit can receive phase information (operation 352). The phase information can indicate a target phase setting for the output clock signal of ILO. Next, the ILO-based clock deskew circuit can select an injection point and determine a free-running frequency value based on the received phase information (operation 354). The ILO-based clock deskew circuit can then inject the injection clock signal at the selected injection point in the ILO and tune the free-running frequency of the ILO to the determined free-running frequency value (operation 356), thereby causing the output clock signal of the ILO to have the target phase.

Specifically, in some embodiments, phase controller 314 can generate injection point select signal 318 and free-running frequency control signal 316 based on phase information 308. Injection point select signal 318 can be provided as a control signal to demultiplexer 312 in order to inject the injection clock signal at a particular injection point in ILO 310, and the free-running frequency control signal 316 can be provided to ILO 310 to tune the free-running frequency of ILO 310 to a desired value. In this manner, ILO-based clock deskew circuit 302 can modify the phase of output clock signal 304 based on phase information 308.

FIG. 3C illustrates phase curves for an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

The X-axis corresponds to the frequency difference (denoted by “Δω”) between the free-running frequency of the ILO and the frequency of the injection clock signal, if the injection frequency (which can be the same as the frequency of the input clock signal) is close to the free-running frequency. If the injection frequency is much greater or smaller than the free-running frequency in order to inject the oscillator at a harmonic or sub-harmonic of the ILO, then Δω represents the difference between the relevant harmonic or sub-harmonic frequency and the injection frequency. The Y-axis corresponds to the phase (in degrees) of the output clock signal of the ILO. When the injection clock signal is injected in the in-phase injection point, the ILO operates along the top curve (between points “A” and “B”). When the injection clock signal is injected in the quadrature-phase injection point, the ILO operates along the bottom curve (between points “C” and “D”).

The phase of the output clock signal is +90° at point “A,” zero at points “B” and “C,” and −90° at point “D.” Frequency difference value Δωmin corresponds to points “B” and “D,” and frequency difference value Δωmax corresponds to points “A” and “C.” The ILO-based clock deskew circuit can switch between in-phase and quadrature-phase injection and frequency differences Δωmin and Δωmax to switch between operation at points “B” and “C” which have the same output clock phase. Note that each injection point can be viewed as being associated with a phase tuning range. For example, in FIG. 3C, the in-phase injection point may be associated with a phase tuning range between +90° and 0°, and the quadrature-phase injection point may be associated with a phase tuning range between 0° and −90°.

The ILO-based clock deskew circuit can vary the phase from +90° to −90° as follows. A phase of +90° can be achieved by operating the ILO at point “A,” i.e., by using in-phase injection and a frequency difference equal to Δωmax. The phase can be decreased from +90° to 0° by moving the operating point of the ILO from point “A” to point “B” along the top curve, e.g., by using in-phase injection and decreasing the frequency difference from Δωmax to Δωmin.

Once point “B” is reached on the top curve, the ILO-based clock deskew circuit can switch to point “C” in the bottom curve, e.g., by operating the ILO in quadrature-phase injection and by changing the frequency difference to Δωmax. The phase can then be decreased from 0° to −90° by moving the operating point of the ILO from point “C” to point “D” along the bottom curve, e.g., by using quadrature-phase injection and decreasing the frequency difference from Δωmax to Δωmin.

In some embodiments, the ILO-based clock deskew circuit can adjust the phase over the full 360° range by inverting either the injection clock signal or the output clock signal of the ILO in addition to performing the ±90° phase adjustment as explained above.

In some embodiments, for a target phase value, the ILO-based clock deskew circuit can determine an appropriate injection point and a frequency difference value from the phase curves that will cause the phase of the output clock signal of the ILO to be equal to the target phase value. Specifically, if frequency difference values Δωmin and Δωmax are determined (e.g., during calibration), the ILO-based clock deskew circuit can switch between the different injection points at the appropriate frequency difference values. In some embodiments, the ILO-based clock deskew circuit can be part of a feedback loop (e.g., a clock and data recovery, or CDR, loop) that adjusts the frequency difference value in response to a feedback signal that is sensitive to the output clock phase. In some embodiments, the ILO-based clock deskew circuit can use linear interpolation, piecewise linear interpolation, or other interpolation methods to determine the frequency difference value Δω that corresponds to a given phase value.

For example, in some embodiments, the phase of the ILO output signal for injection at point p can be determined using the following expression: θ=θ_(0,p)+sin⁻¹ (A·Δω/K), where θ is the phase of the ILO output signal, A is an ILO-specific constant, Δω is the difference between the frequency of the injection clock signal and the free-running frequency of the ILO, K is the injection strength relative to a nominal ILO signal, and θ_(0,p) is the nominal phase with Δω=0 for injection at point p and injection strength K.

Some embodiments described in this disclosure provide methods and apparatuses for calibrating an ILO-based clock deskew circuit by determining frequency difference values (e.g., Δωmin and Δωmax) that correspond to the phase boundaries between adjacent phase tuning ranges associated with injection points.

FIG. 4A illustrates how an ILO-based clock deskew circuit can be calibrated in accordance with some embodiments described in this disclosure.

In some embodiments, demultiplexer 412 can generate an injection signal based on input clock signal 406, and inject the injection signal into one of multiple injection points in ILO 410 based on an injection point select signal. For example, demultiplexer 412 can inject the injection signal into an in-phase or quadrature-phase injection point of ILO 410 based on injection point select signal 418. ILO 410 can receive free-running frequency control signal 416 which can be used to tune the free-running frequency of ILO 410. Input clock signal 406 can also be provided as input to ±45° phase shift and delay-matching circuit 420 which introduces, into input clock signal 406, a ±45° phase shift and a delay that matches the delay of the active path, e.g., the delay through demultiplexer 412 and ILO 410. The outputs of ILO 410 and ±45° phase shift and delay-matching circuit 420 can be provided as inputs to phase detector 422. Phase detector 422 can generate phase detector output 424, which can be indicative of the phase difference between the two inputs, namely, the phase difference between the output of ILO 410 and the output of ±45° phase shift and delay-matching circuit 420.

Calibration logic 426 can be used to calibrate the ILO-based clock deskew circuit by determining frequency difference values (e.g., Δωmin and Δωmax) that correspond to the phase boundaries associated with the injection points. In some embodiments, calibration logic 426 can receive phase detector output 424 and generate injection point select signal 418 and free-running frequency control signal 416. Calibration logic 426 can sweep the free-running frequency control signal 416 to determine the free-running frequency signal values that correspond to the switchover point between in-phase and quadrature-phase injection. Specifically, in some embodiments, calibration logic 426 can sweep the free-running frequency control signal 416 until the phase of the output of ILO 410 is substantially equal to the phase of the output of ±45° phase shift and delay-matching circuit 420. When Δω=0, the phase of the output of ILO 410 is equal to +45° for in-phase injection (point “F”) and −45° for quadrature-phase injection (point “G”). The phase of the output of ±45° phase shift and delay-matching circuit 420 is equal to 0° (point “E”), which is −45° with respect to point “F,” and +45° with respect to point “G.” The phase at each of the switchover points “B” and “C” is equal to the phase at point “E” which corresponds to the phase of the output of ±45° phase shift and delay-matching circuit 420. In this manner, calibration logic 426 can determine frequency difference values (e.g., Δωmin and Δωmax) that correspond to the phase boundaries associated with the injection points. In some embodiments, calibration logic 426 can be part of a phase controller, e.g., phase controller 314 shown in FIG. 3A.

FIG. 4B illustrates an embodiment of a ±45° phase shift and delay-matching circuit in accordance with some embodiments described in this disclosure.

In some embodiments, ±45° phase shift and delay-matching circuit 420 can include ILO 410-R and demultiplexer 412-R that are replicas of ILO 410 and demultiplexer 412, respectively. Demultiplexer 412-R can receive input clock signal 406 and generate an injection signal that is injected at both the in-phase and the quadrature-phase injection points of ILO 410-R. Specifically, injection point select signal 438 can be provided to demultiplexer 412-R which causes demultiplexer 412-R to inject the injection clock signal into both the in-phase and the quadrature-phase injection points of ILO 410-R. ILO 410-R can be provided a free-running frequency control signal 436 so that the free-running frequency of ILO 410-R is equal to the frequency of the injection clock signal (which is equal to the frequency of input clock signal 406), Δω=0 for ILO 410-R. Demultiplexer 412-R and ILO 410-R introduce a delay that matches the delay introduced by demultiplexer 412 and ILO 410 because demultiplexer 412-R and ILO 410-R are replicas of demultiplexer 412 and ILO 410, respectively. Under these conditions (i.e., when the signal is injected simultaneously at in-phase and quadrature-phase injection points, Δω=0, and delays of ILOs 410-R and 412-R match delays of ILOs 410 and 412, respectively), ILO 410-R produces an output signal whose phase corresponds to point “E” in FIG. 3C. The output of ILO 410-R can now be used as a reference for calibrating the phase boundaries of ILO 410.

FIG. 4C presents a flowchart that illustrates a process for calibrating an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

The process can begin by a calibration system (e.g., calibration logic 426) receiving phase detector output (operation 452). The phase detector output (e.g., phase detector output 424) can indicate a phase difference between the output of a first ILO (e.g., ILO 410) and the output of a second ILO (e.g., ILO 410-R). The calibration system can provide a free-running frequency control value to one or both of the ILOs. Specifically, in some embodiments, the calibration system can select one of the ILOs to be an active ILO, and the other to be a reference ILO. Next, the calibration system can select an injection point (e.g., injection point “I” or “Q”) for calibration. The calibration system can then set the free-running frequency of one of the ILOs (e.g., the reference ILO) to be equal to the frequency of the input clock signal, and sweep the free-running frequency of the other ILO (e.g., the active ILO). For a given free-running frequency control value, the calibration system can determine whether the difference between the phases of the two ILOs is substantially equal to a pre-determined value (operation 458). For example, in embodiments that use a zero-phase detector, the pre-determined value can be zero, whereas in embodiments that use an XOR-based phase detector, the pre-determined value can be +90° or −90°. In some embodiments, the calibration system can determine that the difference between the phases of the two ILOs is substantially equal to the pre-determined value when the calibration system detects a sign change in the phase detector output as the free-running frequency of the active ILO is swept. If the difference between the two phases is not substantially equal to the pre-determined value, the system can adjust the free-running frequency control value (operation 456). On the other hand, if the difference between the phases is substantially equal to the pre-determined value, the calibration system can store the free-running frequency control value and associate the stored free-running frequency control value with a phase boundary (operation 454).

FIG. 5A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

ILO-based clock deskew circuit 502 can include phase controller 514, demultiplexers 512-1 and 512-2, ILOs 510-1 and 510-2, and multiplexer 520. Input clock signal 506 can be provided as input to demultiplexers 512-1 and 512-2. Demultiplexers 512-1 and 512-2 can receive injection point select signals 518-1 and 518-2, respectively. Demultiplexers 512-1 and 512-2 can inject an injection clock signal into ILOs 510-1 and 510-2, respectively, based on the injection point select signals received by the demultiplexers. Demultiplexer 512-1 and 512-2 can also adjust the amplitude of the injection clock signal (shown in FIG. 5A as gain “K”).

ILOs 510-1 and 510-2 can receive free-running frequency control signals 516-1 and 516-2, respectively. The outputs of ILOs 510-1 and 510-2 can be provided as inputs to multiplexer 520. Based on ILO output select signal 522, multiplexer 520 can select the output of ILO 510-1 or the output of ILO 510-2 as output clock signal 504. Phase controller 514 can receive phase information 508. Phase controller 514 can generate, based on phase information 508, injection point select signals 518-1 and 518-2, free-running frequency control signals 516-1 and 516-2, and ILO output select signal 522.

FIG. 5B presents a flowchart that illustrates a process for modifying the phase of a clock signal using an ILO-based clock deskew circuit, e.g., ILO-based clock deskew circuit 502, in accordance with some embodiments described in this disclosure.

In some embodiments, an ILO-based clock deskew circuit can receive phase information (operation 552). The phase information can indicate a target phase setting for the output clock signal of the ILO. Next, the ILO-based clock deskew circuit can select an ILO based on the phase information, and determine an injection point and a free-running frequency value based on the phase information (operation 554).

The ILO-based clock deskew circuit can then inject the injection clock signal at the determined injection point in the selected ILO, tune the free-running frequency of the selected ILO to the determined free-running frequency value, and output the output signal of the selected ILO (operation 556).

Specifically, in some embodiments, phase controller 514 can select an ILO by selecting the ILO's output signal using ILO output select signal 522, and generate injection point select signals 518-1 and 518-2 and free-running frequency control signals 516-1 and 516-2 based on phase information 508. Phase controller 514 can use injection point select signals 518-1 and 518-2 to inject the injection clock signal at a particular injection point in ILOs 510-1 and 510-2, respectively. Phase controller 514 can use free-running frequency control signals 516-1 and 516-2 to tune the free-running frequencies of ILOs 510-1 and 510-2, respectively.

In some embodiments, an ILO-based clock deskew circuit can use one of the ILOs for in-phase injection and the other for quadrature-phase injection. For example, suppose ILO-based clock deskew circuit 502 uses ILO 510-1 for in-phase injection and ILO 510-2 for quadrature-phase injection. Now, given a phase value, phase controller 514 can determine whether generating the phase requires in-phase injection or quadrature-phase injection. If the phase is to be generated using in-phase injection, phase controller 514 can use injection point select signal 518-1 to select in-phase injection for ILO 510-1, provide an appropriate free-running frequency control signal 516-1 to ILO 510-1, and use ILO output select signal 522 to select the output of ILO 510-1. On the other hand, if the phase is to be generated using quadrature-phase injection, phase controller 514 can use injection point select signal 518-2 to select quadrature-phase injection for ILO 510-2, provide an appropriate free-running frequency control signal 516-2 to ILO 510-2, and use ILO output select signal 522 to select the output of ILO 510-2.

FIG. 6A illustrates how an ILO-based clock deskew circuit can be calibrated in accordance with some embodiments described in this disclosure.

In some embodiments, input clock signal 606 can be provided as input to demultiplexers 612-1 and 612-2. Demultiplexers 612-1 and 612-2 can receive injection point select signals 618-1 and 618-2, respectively. Demultiplexers 612-1 and 612-2 can inject an injection clock signal into ILOs 610-1 and 610-2, respectively, based on the injection point select signals received by the demultiplexers. ILOs 610-1 and 610-2 can receive free-running frequency control signals 616-1 and 616-2, respectively. The outputs of ILOs 610-1 and 610-2 can be provided as inputs to phase detector 622. Phase detector 622 can generate phase detector output 624, which can be indicative of the phase difference between the two inputs, namely, the phase difference between the outputs of ILOs 610-1 and 610-2.

Calibration logic 626 can be used to calibrate the ILO-based clock deskew circuit by determining frequency difference values (e.g., Δωmin and Δωmax) that correspond to the phase boundaries associated with the injection points. In some embodiments, calibration logic 626 can receive phase detector output 624 and generate injection point select signals 618-1 and 618-2, and free-running frequency control signals 616-1 and 616-2. Calibration logic 626 can set the injection point select signals 618-1 and 618-2 to select two adjacent phase ranges for the two ILOs, such as in-phase and quadrature phase, respectively. Calibration logic 626 can then sweep the free-running frequency control signals 616-1 and 616-2 in opposite directions starting from the input clock frequency (that is, from Δω=0 for both ILOs) to determine the free-running frequency signal values that correspond to the switchover point between the two phase ranges. Specifically, in some embodiments, calibration logic 626 can sweep the free-running frequency control signals 616-1 and 616-2 until the phase of the output of ILO 610-1 is substantially equal to the phase of the output of ILO 610-2. For example, if ILO 610-1 has the injection point selected as “I” and ILO 610-2 has the injection point selected as “Q”, and free-running frequency control signal 616-1 is swept in the negative direction (e.g., from point “F” to point “B” in FIG. 3C) while free-running frequency control signal 616-2 is swept in the positive direction (e.g., from point “G” to point “C” in FIG. 3C), then the two ILO output phases may be equal when ILOs 610-1 and 610-2 are operating at switchover points “B” and “C” in FIG. 3C, respectively. In this manner, calibration logic 626 can determine frequency difference values (e.g., Δωmin and Δωmax) that correspond to the phase boundaries associated with the injection points. In some embodiments, calibration logic 626 can be part of a phase controller, e.g., phase controller 514 shown in FIG. 5A.

The phase tuning curves in FIG. 3C are shown as being symmetric with respect to positive and negative adjustment of the free-running frequency control offset Δω. However, in some embodiments the curves may not be symmetric. In such embodiments, when the free-running frequencies of the two ILOs are swept in opposite directions, the phases of the two ILOs may be equal at a non-zero phase value, i.e., at a phase that is earlier or later than 0°. However, even in such embodiments, calibration logic 626 can successfully determine free-running frequency control values Δωmin and Δωmax that correspond to the switchover points.

FIG. 6B presents a flowchart that illustrates a process for calibrating an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

The process can begin with a calibration system (e.g., calibration logic 626) setting two ILOs to adjacent phase tuning ranges and setting the free-running frequencies of the two ILOs to match the input clock frequency or a harmonic or sub-harmonic of the input clock frequency (operation 660). Next, the calibration system can receive phase detector output (operation 652). The phase detector output (e.g., phase detector output 624) can indicate a phase difference between the outputs of the two ILOs (e.g., ILOs 610-1 and 610-2).

The calibration system can then sweep the free-running frequencies of the two ILOs in opposite directions until the phases of the outputs of the two ILOs are substantially equal. In some embodiments, the calibration system can iteratively adjust the free-running frequencies of the two ILOs, and check the phase detector output 624 to determine whether the difference between the two phases is substantially equal to a pre-determined value (operation 658). For example, in embodiments that use a zero-phase detector, the pre-determined value can be zero, whereas in embodiments that use an XOR-based phase detector, the pre-determined value can be +90° or −90°. In some embodiments, the calibration system can determine that the phases of the two ILOs are substantially equal when the calibration system detects a sign change in the phase detector output.

If the difference between the two phases is not substantially equal to the pre-determined value, the system can adjust the free-running frequency control values in opposite directions (operation 654). On the other hand, if the difference between the two phases is substantially equal to the pre-determined value, the calibration system can store the free-running frequency control values (for example, in register circuits) and associate the stored free-running frequency control values with a phase boundary between the adjacent phase tuning ranges (operation 656). In some embodiments, the system can determine a free-running frequency control value that corresponds to a given phase of the output clock signal by interpolating between the stored free-running frequency control values.

For example, in FIG. 3C, the calibration system can move the operating point of ILO 610-1 along the top curve from the midpoint (i.e., the operating point that corresponds to Δω=0) to point “B,” and move the operating point of ILO 610-2 along the bottom curve from the midpoint to point “C.” Note that the output phases of ILOs 610-1 and 610-2 will be substantially equal when ILOs 610-1 and 610-2 simultaneously reach operating points “B” and “C,” respectively. When this happens, the calibration system can store the free-running frequency control values corresponding to points “B” and “C,” and use these free-running frequency control values for switching between in-phase injection and quadrature-phase injection. In an embodiment, a register circuit is used to store the free-running frequency control values corresponding to points “B” and “C.”

In some embodiments, the ILO-based clock deskew circuit can include more than two phase tuning ranges. For example, each ILO in an ILO-based clock deskew circuit can have n injection points denoted by p₀, p₁, . . . p_(n−1) that correspond to n phase tuning ranges R₀, R₁, . . . R_(n−1), that are centered at phases θ₀, θ₁, . . . θ_(n−1). Some of the n injection points may correspond to the same injection node in the ILO circuit, but with opposite phase. For example, injection at an in-phase oscillator node with either positive or negative injection amplitude may be generally be considered as two different injection points, because they correspond to two distinct injection selections with distinct phase tuning ranges and center phases.

In embodiments that are similar to the embodiments illustrated in FIGS. 3A-3C and FIGS. 4A-4C, the ILO-based clock deskew circuit can determine an injection point from the n injection points and a free-running frequency value based on the target phase value. Next, the ILO-based clock deskew circuit can inject the injection signal at the determined injection point and tune the ILO to the determined free-running frequency value.

To calibrate the boundary between the adjacent phase tuning ranges R_(k) and R_(k+1), the calibration logic can simultaneously inject the injection signal into injection points p_(k) and p_(k+1) of the replica ILO, and sweep the free-running frequency of the active ILO until the phase difference between phases of the replica ILO and the active ILO is substantially equal to a pre-determined value. For example, the calibration logic can simultaneously inject the injection signal into injection points p_(k) and p_(k+1) of the replica ILO, and sweep the free-running frequency of the active ILO until the phases of the replica ILO and the active ILO are substantially equal (i.e., the phase difference between the replica ILO and the active ILO is nominally zero). Once the free-running frequency control signal values for the phase boundaries have been determined, the ILO-based clock deskew circuit can generate an output clock signal with a given target phase by determining an injection point and a free-running frequency control signal value.

In embodiments that are similar to the embodiments illustrated in FIGS. 5A-5B and FIGS. 6A-6B, the ILO-based clock deskew circuit can use the two ILOs in an alternating fashion. For example, the ILO-based clock deskew circuit can use one of the ILOs for odd numbered phase tuning ranges (e.g., phase tuning ranges R₁, R₃, R₅, etc.) and the other for even numbered phase tuning ranges (e.g., phase tuning ranges R₀, R₂, R₄, etc.). Given a target phase value, the ILO-based clock deskew circuit can select an ILO and determine an injection point from the n injection points and a free-running frequency value. Next, the ILO-based clock deskew circuit can inject the injection signal at the determined injection point of the selected ILO and tune the selected ILO to the determined free-running frequency value.

Some embodiments may use calibration logic to calibrate the phase boundaries, and use the calibrated phase boundaries to switch between the two ILOs. Specifically, to calibrate the boundary between the adjacent phase tuning ranges R_(k) and R_(k+1), the calibration logic can inject an injection signal at injection point p_(k) in one of the ILOs and inject the injection signal at injection point p_(k+1) in the other ILO. The calibration logic can then concurrently sweep the free-running frequencies of the two ILOs in opposite directions until the phases of their output signals are substantially equal to each other. Once the free-running frequency control signal values for the phase boundaries have been determined, the ILO-based clock deskew circuit can generate an output clock signal with a given target phase by selecting an ILO and by determining an injection point and a free-running frequency control signal value. Some embodiments may not need to calibrate the phase boundaries beforehand. Specifically, these embodiments may switch between the two ILOs when the phases of the two ILOs match.

FIG. 7A illustrates an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

ILO-based clock deskew circuit 702 can include phase controller 714, demultiplexers 712-1 and 712-2, ILOs 710-1 and 710-2, and multiplexer 720. ILOs 710-2 and 710-2 can have two or more injection points. Input clock signal 706 can be provided as input to demultiplexers 712-1 and 712-2. Demultiplexers 712-1 and 712-2 can receive injection point select signals 718-1 and 718-2, respectively, to select an injection point from the two or more injection points. Demultiplexers 712-1 and 712-2 can inject an injection clock signal into ILOs 710-1 and 710-2, respectively, based on the injection point select signals received by the demultiplexers. Demultiplexer 712-1 and 712-2 can also adjust the amplitude of the injection clock signal (shown in FIG. 7A as gain “K”).

ILOs 710-1 and 710-2 can receive free-running frequency control signals 716-1 and 716-2, respectively. The outputs of ILOs 710-1 and 710-2 can be provided as inputs to multiplexer 720. Based on ILO output select signal 722, multiplexer 720 can select the output of ILO 710-1 or the output of ILO 710-2 as output clock signal 704. Phase controller 714 can receive phase information 708. Phase controller 714 can generate, based on phase information 708, injection point select signals 718-1 and 718-2, free-running frequency control signals 716-1 and 716-2, and ILO output select signal 722.

The outputs of ILOs 710-1 and 710-2 can be provided as inputs to phase detector 724. Phase detector 724 can generate phase detector output 726, which can be indicative of the phase difference between the two inputs, namely, the phase difference between the outputs of ILOs 710-1 and 710-2. Phase detector output 726 can then be provided as an input to phase controller 714, which can use phase detector output 726 to determine when to switch between injection points.

In some embodiments, ILO-based clock deskew circuit 702 can use ILOs 710-1 and 710-2 in an alternating fashion while calibrating or detecting the phase boundaries between adjacent phase tuning ranges as the target phase is adjusted.

FIG. 7B illustrates phase tuning curves for three successive injection points p_(k), p_(k+1), and p_(k+2) in accordance with some embodiments described in this disclosure. For example, with ILOs capable of receiving injection signals at in-phase and quadrature-phase injection points with positive or negative amplitude, these three curves might correspond to injection points “+Q” (quadrature-phase injection), “+I” (in-phase injection), and “−Q” (quadrature-phase injection with inversion), respectively.

Consider the case where the active ILO (e.g., ILO 710-1), whose output is selected by multiplexer 720 as the output clock signal, is configured to operate with injection at injection point p_(k) and with positive free-running frequency offset Δω. In this case, the phase controller 714 may configure the reference ILO (e.g., ILO 710-2), whose output is not selected by multiplexer 720, with injection at injection point p_(k+1) and negative free-running frequency offset −Δω. As phase controller 714 increases the output phase by increasing Δω the active ILO, it simultaneously decreases −Δω on the reference ILO, thereby moving the phase of active ILO from point “E” towards point “A” and moving the phase of reference ILO from point “F” towards point “B.”

When the ILOs reach points “A” and “B,” they have the same phase. When this condition is detected by phase detector 724, phase controller 714 (which receives phase detector output 726) switches the output selection multiplexer 720 so that the reference ILO injecting at injection point p_(k+1) is now the active ILO, and the active ILO injecting at injection point p_(k+1) is now the reference ILO. The phase controller can continue to increase the output clock phase by increasing Δω on the now active ILO injecting at injection point p_(k+1). In some embodiments, as long as the active free-running frequency offset Δω is negative, the reference ILO continues to inject at injection point p_(k). In these embodiments, as the negative Δω moves closer to zero, the phase of the active ILO may move from point “B” to point “F,” and the phase of the reference ILO may move from point “A” to point “E.”

In some embodiments, if phase controller 714 increases the active ILO free-running frequency offset Δω to be positive, it then switches the reference ILO to stop injecting at injection point p_(k) and start injecting at injection point p_(k+2). As phase controller 714 continues to increase the output clock phase by increasing the now positive Δω value on the active ILO (which is injecting at injection point p_(k+1)), it simultaneously decreases the negative Δω value on the reference ILO (which is injecting at injection point p_(k+2)), thereby moving the phase of active ILO from point “F” towards point “C” and moving the phase of reference ILO from point “G” towards point “D.” As the two ILO phases reach points “C” and “D,” the active and reference ILOs again switch responsibility.

A similar process can occur when phase controller 714 decreases the output clock phase, with the steps outlined above occurring in reverse direction and order. Note that whenever the active ILO free-running frequency offset is positive, the reference ILO can be operated with negative free-running frequency offset at the succeeding injection point corresponding to an adjacent advanced phase range, which is the phase range that will be needed when Δω increases past the upper control boundary (e.g., Δωmax). Similarly, whenever the active ILO free-running frequency offset is negative, the reference ILO can be operated with positive free-running frequency offset at the preceding injection point corresponding to an adjacent retarded phase range, which is the phase range that will be needed when Δω decreases below the lower control boundary (e.g., Δωmin).

FIG. 8 illustrates a memory controller that includes an ILO-based clock deskew circuit in accordance with some embodiments described in this disclosure.

Memory controller 800 may be coupled with memory module 804 via one or more signal lines, which may carry control signals, clock signals, and/or data signals. In an embodiment, memory module 804 includes one or more memory devices having arrays of memory cells. Examples of memory devices include dynamic random access memory (DRAM) devices such as synchronous double data rate (DDR) DRAM or non volatile memory such as Flash memory. In some embodiments, memory controller 800 is an integrated circuit device having an interface that orchestrates data flow to and from a memory device. In various embodiments, memory controller 800 is disposed, along with one or more memory devices, on a circuit board, or may reside with the memory device in a common encapsulated package, or included in a stack configuration with the memory device (for example, in a package on package (PoP) configuration or using through silicon via (TSV) technology).

Memory controller 800 may include one or more ILO-based clock deskew circuits, such as ILO-based clock deskew circuit 802. In some embodiments, memory controller 800 may use ILO-based clock deskew circuit 802 to adjust the phase of a clock signal. For example, memory controller 800 may use ILO-based clock deskew circuit 802 to adjust the phase of a clock signal that is used for communicating between memory controller 800 and a memory device disposed on memory module 804.

Any data structures and/or code described in this disclosure can be stored on a computer-readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. The computer-readable storage medium includes, but is not limited to, volatile memory, non-volatile memory, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs), DVDs (digital versatile discs or digital video discs), or other media capable of storing computer-readable media now known or later developed.

The methods and/or processes described in this disclosure can be embodied as code and/or data, which can be stored in a computer-readable storage medium as described above. When a computer system reads and executes the code and/or data stored on the computer-readable storage medium, the computer system performs the methods and/or processes.

The methods and/or processes described in this disclosure can also be embodied in hardware. Hardware embodiments include, but are not limited to, application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), and other programmable-logic devices now known or later developed. For example, the memory controller 800 shown in FIG. 8 may be a processor (e.g., with multiple processor cores), a system-on-chip (SoC), an ASIC, a graphics processing unit (GPU), a mobile applications processors, an FPGA, etc. It should also be noted that the use of the ILO based methods and apparatuses described herein are not limited to the functionality of the signaling interface of a memory controller. Specifically, the ILO based methods and apparatuses described herein may be used in the above mentioned chips for other applications or purposes, such as other types of signaling interfaces or clocking where deskewing or generation of a clock signal may be desired.

Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure. Thus, the scope of the present disclosure is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. 

What is claimed is:
 1. A circuit, comprising: an injection-locked oscillator (ILO) having an ILO free-running frequency control input, multiple ILO injection points, and an ILO output; a multiplexer having a multiplexer input, multiple multiplexer outputs, and a multiplexer select input; a phase-shift-and-delay (PSAD) circuit having a PSAD input and a PSAD output; a phase detector (PD) having a first PD input, a second PD input, and a PD output; a calibration circuit having a calibration input, an injection point select output, and a frequency control output; and wherein an input clock signal is provided to the multiplexer input and the PSAD input, wherein each multiplexer output is coupled with a respective ILO injection point, wherein the ILO output is coupled with the first PD input, wherein the PSAD output is coupled with the second PD input, wherein the PD output is coupled with the calibration input, wherein the injection point select output is coupled with the multiplexer select input, and wherein the frequency control output is coupled with the ILO free-running frequency control input.
 2. The circuit of claim 1, wherein the ILO is based on a ring oscillator.
 3. The circuit of claim 1, wherein the ILO is based on a tank circuit.
 4. The circuit of claim 1, wherein the calibration circuit comprises frequency sweep circuitry to output a frequency control signal on the frequency control output that causes a free-running frequency of the ILO to sweep across a range of frequency values.
 5. The circuit of claim 4, wherein the calibration circuit comprises storage circuitry to store a frequency control setting corresponding to the frequency control signal upon detecting that the calibration input indicates that phases of the first PD input and the second PD input are equal.
 6. The circuit of claim 1, wherein the PSAD circuit adds a +45° or −45° phase shift and a delay to an input PSAD signal received on the PSAD input.
 7. The circuit of claim 6, wherein the PSAD circuit comprises a second ILO that is a replica of the ILO and a second multiplexer that is a replica of the multiplexer.
 8. A controller device that controls the operation of a memory device, the controller device comprising: an injection-locked oscillator (ILO) having an ILO free-running frequency control input, multiple ILO injection points, and an ILO output; a multiplexer having a multiplexer input, multiple multiplexer outputs, and a multiplexer select input; a phase-shift-and-delay (PSAD) circuit having a PSAD input and a PSAD output; a phase detector (PD) having a first PD input, a second PD input, and a PD output; a calibration circuit having a calibration input, an injection point select output, and a frequency control output; and wherein an input clock signal is provided to the multiplexer input and the PSAD input, wherein each multiplexer output is coupled with a respective ILO injection point, wherein the ILO output is coupled with the first PD input, wherein the PSAD output is coupled with the second PD input, wherein the PD output is coupled with the calibration input, wherein the injection point select output is coupled with the multiplexer select input, and wherein the frequency control output is coupled with the ILO free-running frequency control input.
 9. The controller device of claim 8, wherein the ILO is based on a ring oscillator.
 10. The controller device of claim 8, wherein the ILO is based on a tank circuit.
 11. The controller device of claim 8, wherein the calibration circuit comprises frequency sweep circuitry to output a frequency control signal on the frequency control output that causes a free-running frequency of the ILO to sweep across a range of frequency values.
 12. The controller device of claim 11, wherein the calibration circuit comprises storage circuitry to store a frequency control setting corresponding to the frequency control signal upon detecting that the calibration input indicates that phases of the first PD input and the second PD input are equal.
 13. The controller device of claim 8, wherein the PSAD circuit adds a +45° or −45° phase shift and a delay to an input PSAD signal received on the PSAD input.
 14. The controller device of claim 13, wherein the PSAD circuit comprises a second ILO that is a replica of the ILO and a second multiplexer that is a replica of the multiplexer.
 15. A memory system, comprising: a memory module; and a memory controller coupled with the memory module via one or more signal lines, wherein the memory controller comprises an injection-locked-oscillator (ILO)-based clock deskew circuit, and wherein the ILO-based clock deskew circuit comprises: an ILO having an ILO free-running frequency control input, multiple ILO injection points, and an ILO output; a multiplexer having a multiplexer input, multiple multiplexer outputs, and a multiplexer select input; a phase-shift-and-delay (PSAD) circuit having a PSAD input and a PSAD output; a phase detector (PD) having a first PD input, a second PD input, and a PD output; a calibration circuit having a calibration input, an injection point select output, and a frequency control output; and wherein an input clock signal is provided to the multiplexer input and the PSAD input, wherein each multiplexer output is coupled with a respective ILO injection point, wherein the ILO output is coupled with the first PD input, wherein the PSAD output is coupled with the second PD input, wherein the PD output is coupled with the calibration input, wherein the injection point select output is coupled with the multiplexer select input, and wherein the frequency control output is coupled with the ILO free-running frequency control input.
 16. The memory system of claim 15, wherein the ILO is based on a ring oscillator.
 17. The memory system of claim 15, wherein the ILO is based on a tank circuit.
 18. The memory system of claim 15, wherein the calibration circuit comprises frequency sweep circuitry to output a frequency control signal on the frequency control output that causes a free-running frequency of the ILO to sweep across a range of frequency values.
 19. The memory system of claim 18, wherein the calibration circuit comprises storage circuitry to store a frequency control setting corresponding to the frequency control signal upon detecting that the calibration input indicates that phases of the first PD input and the second PD input are equal.
 20. The memory system of claim 15, wherein the PSAD circuit adds a +45° or −45° phase shift and a delay to an input PSAD signal received on the PSAD input, and wherein the PSAD circuit comprises a second ILO that is a replica of the ILO and a second multiplexer that is a replica of the multiplexer. 